package com.ziyun.pop.common.e.material;

import com.ziyun.pop.common.e.BaseEnum;

/**
 * 原料耗材单位枚举类
 *  0.个;1.平方米m;2.重量g;3长度m;4.张
 * @author 桂朝
 * @date 2018/8/9 19:10
 */
public enum MaterialUnitEnum implements BaseEnum {
    NUMBER(0, "个"),
    SQUARE(1, "m²"),
    WEIGHT(2, "g"),
    LENGTH(3, "m"),
    PIECES(4, "张");

    private int id;
    private String describe;

    MaterialUnitEnum(int id, String describe) {
        this.id = id;
        this.describe = describe;
    }

    ;

    @Override
    public int toInt() {
        return id;
    }

    @Override
    public String toCode() {
        return null;
    }

    @Override
    public String toDescribe() {
        return describe;
    }
}
